import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { MobileSchoolRoutingModule } from './mobile-school-routing.module';
import { PageHomeComponent } from './page-home/page-home.component';
import { PageActiveComponent } from './page-active/page-active.component';
import { PageMyComponent } from './page-my/page-my.component';
import { CompStarRatingComponent } from './comp-star-rating/comp-star-rating.component';
import { PageActiveDetailComponent } from './page-active-detail/page-active-detail.component';
import { TokPipe } from './tok.pipe';
import { IonicModule } from '@ionic/angular';
import { NgxEchartsModule } from 'ngx-echarts';
import { PageStudentComponent } from './page-student/page-student.component';

@NgModule({
  declarations: [
    PageHomeComponent,
    PageActiveComponent,
    PageMyComponent,
    CompStarRatingComponent,
    PageActiveDetailComponent,
    TokPipe,
    PageStudentComponent,
  ],
  imports: [
    CommonModule,
    MobileSchoolRoutingModule,
    // 引入IonicModule
    IonicModule.forRoot({ mode: 'ios' }),
    // 引入ECharts
    NgxEchartsModule.forRoot({
      echarts: () => import('echarts'),
    }),
  ]
})
export class MobileSchoolModule { }
